package com.dd.cloud.user.req.doctor;

import com.dd.cloud.common.annotate.validation.Addr;
import com.dd.cloud.common.annotate.validation.Name;
import com.dd.cloud.common.annotate.validation.Phone;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 患者物流地址表
 * </p>
 *
 * @author 小康
 * @since 2020-03-21
 */
@Data
public class PatientDeliveryAddrUpdateReq implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 患者就诊卡ID
     */
    @NotNull(message = "收货地址id不能为空")
    private Integer id;

    /**
     * 收货人
     */
    @Name(begin = "收件人")
    private String receiver;

    /**
     * 手机号
     */
    @Phone
    private String mobileNumber;

    /**
     * 收货地址
     */
    @Addr(begin = "收件地址")
    private String addr;

    /**
     * 省份
     */
    @Name(begin = "省份")
    private String province;

    /**
     * 城市
     */
    @Name(begin = "城市")
    private String city;

    /**
     * 区
     */
    @Name(begin = "区")
    private String district;

    /**
     * 邮编
     */
    @Name(begin = "邮编", required = false)
    private String postcode;

}
